package org.elanfox.cloud.redis.annotations;


import org.elanfox.cloud.redis.base.LockType;

import java.lang.annotation.*;

/**
 * @author allan
 * @date 2019-08-15
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RedisLock {
    String lockKey();

    String serviceId();

    LockType lockType() default LockType.BLOCK;

    long timeout() default 600;
}
